<tagLib name="strends" />
<php>
	function getTypeName($type)
	{
		return l("SHARE_".strtoupper($type));
	}
	function getShareData($data)
	{
		return l("SHARE_DATA_".strtoupper($data));
	}
</php>
<include file="Public:header" />
<script type="text/javascript" src="__TMPL__Static/Js/dataList.js"></script>
<script type="text/javascript" src="__TMPL__Static/Js/shareList.js"></script>
<div class="handle-btns">
	<form action="__APP__">
		<span>{%SHARE_CONTENT}</span>
		<input class="textinput" type="text" value="{$keyword}" name="keyword" size="8" />
		<small></small>
		<span>{%USER_NAME}</span>
		<input class="textinput" type="text" value="{$uname}" name="uname" id="user_name" size="8" />
		<small></small>
		<span>{%STATUS}</span>
		<select name="status">
			<option value="-1" <if condition="$status eq -1">selected="selected"</if> >{%SHARE_ALL}</option>
			<option value="0" <if condition="$status eq 0">selected="selected"</if> >{%STATUS_0}</option>
			<option value="1" <if condition="$status eq 1">selected="selected"</if> >{%STATUS_1}</option>
		</select>
		<input class="submit_btn" type="submit" value="{%SEARCH}" />
		<input type="hidden" name="{:c('VAR_MODULE')}" value="{$module_name}" />
		<input type="hidden" name="{:c('VAR_ACTION')}" value="index" />
	</form>
</div>

<strends:list 
	id="checkList" 
	style="list" 
	name="share" 
	pk="share_id" 
	checkbox="true" 
	action="true" 
	datasource="list" 
	show="share_id:{%ID}|50,title:{%SHARE_TITLE}|~left,admin_name:{%USER_NAME}|100,create_time|toDate:{%CREATE_TIME}|100,status|getStatusImg:{%STATUS}|60:toggleStatus|share_id,sort:{%SORT}|80:numberEdit|share_id" 
	actionlist="editData:{%EDIT}:share_id,removeData:{%REMOVE}:share_id" action_width="80" />
<div class="pager">{$page}</div>
<include file="Public:footer" />